<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE>
<html>

<head>
<meta charset="UTF-8">
<title>bootstrap form</title>
<!-- Bootstrap core CSS -->
<link href="${basePath}bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">
<!-- Optional Bootstrap Theme -->
<link href="data:text/css;charset=utf-8,"
	data-href="${basePath}bootstrap-3.3.7-dist/css/bootstrap-theme.min.css"
	rel="stylesheet" id="bs-theme-stylesheet">
	
<!-- bootstrap-datetimepicker -->
<script src="${basePath}jQuery Core 1.12.4/jquery-1.12.4.min.js"></script>
<script src="${basePath}bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<link
	href="${basePath}bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css"
	rel="stylesheet" />
<script
	src="${basePath}bootstrap-datetimepicker/js/moment-with-locales.min.js"></script>
<script
	src="${basePath}bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>

<!-- Bootstrap core JavaScript
		<!-- Placed at the end of the document so the pages load faster -->

<script type="text/javascript">
	$(function() {		
		 $('#datetimepicker1').datetimepicker({  
		        format: 'YYYY-MM-DD HH:mm:ss',  
		        locale: moment.locale('zh-cn')  
		    }); 
	});
</script>
</head>

<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<div class="row">
					<div class="col-md-3"></div>
					<div class="col-md-6">
						<form class="form-horizontal"
							action="${basePath}StudentInfoAddServlet" method="post" enctype="multipart/form-data">
							<div class="form-group">
							<!-- 将主键id值传回到数据库 -->
							<input type="hidden" id="stuid" name="stu_id" value="${stuBM.stu_id}">
							</div>
							
							<div class="form-group">
								<label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
								<div class="col-sm-4">
								<!-- disabled -->
									<input type="text"  readonly class="form-control" id="stuName"
										name="student_name" value="${stuBM.student_name}" placeholder="请输入学生姓名">
								</div>

								<label for="inputEmail3" class="col-sm-2 control-label">性别</label>
								<div class="col-sm-4">
									<label class="radio-inline"> <input type="radio"
										id="stusex2" name="sex" value="女"
										<c:if test="${stuBM.sex=='女'}">checked</c:if> >女
									</label> <label class="radio-inline"> <input type="radio"
										id="stusex2" name="sex" value="男"
										<c:if test="${stuBM.sex=='男'}">checked</c:if> >男
									</label>
								</div>
							</div>
							<div class="form-group">
								<label for="inputPassword3" class="col-sm-2 control-label">出生日期</label>
								<div class="col-sm-4">
									<div class='input-group date' id='datetimepicker1'>
										<input type='text' class="form-control" id="stuBirthday"
											name="birthday" value="${stuBM.birthday}"/> <span class="input-group-addon">
											<span class="glyphicon glyphicon-calendar"></span>
										</span>
									</div>
								</div>
								

								<label for="inputPassword3" class="col-sm-2 control-label">地址</label>
								<div class="col-sm-4">
									<input type="text" class="form-control" id="stuAddress"
										name="address_id" value="${stuBM.address_id}" placeholder="请输入地址">
								</div>
							</div>
							<div class="form-group">
								<label for="inputPassword3" class="col-sm-2 control-label">电话</label>
								<div class="col-sm-4">
									<input type="text" class="form-control" id="stuTel"
										name="stu_tel" value="${stuBM.stu_tel}" placeholder="请输入电话">
								</div>
								<div class="form-group">
								<label for="inputPassword3" class="col-sm-2 control-label">头像</label>
								<div class="col-sm-4">
									<input type="file" class="form-control" id="stuImg"
										name="stu_img">
								</div>

							</div>

							</div>
							<div class="form-group">
								<div class="col-sm-offset-4 col-sm-4">
									<button type="submit" class="btn btn-default">修改</button>
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<button type="reset" class="btn btn-default">重置</button>
								</div>
							</div>
						</form>
					</div>
					<div class="col-md-3"></div>
				</div>
			</div>
		</div>
	</div>
	

</body>

</html>